; Auto ping every address from the clipboard.
; Author: Roger Xu
; Created: 2011-02-14
; Last Modified: 2011-02-14

localPing(address)
{
    Run, %comspec% /k ping %address%
}

remotePing(address)
{
    Run, http://www.wipmania.com/pingfrom/%address%/?c=beijing
    ;Run, http://www.wipmania.com/en/ping/%address%/?point=world
}

ping(address)
{
    ;remotePing(address)
    localPing(address)
}

;Win+P to auto ping
#p::
Loop, Parse, clipboard, `n, `r
{
    ping(A_LoopField)
    Sleep, 500
}
return
